package com.sjzd.server.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sjzd.server.pojo.Department;
import com.sjzd.server.pojo.RespBean;

import java.util.List;


/**
 * <p>
 *  服务类
 * </p>
 *
 * @author sjzd
 * @since 2021-02-21
 */
public interface IDepartmentService extends IService<Department> {
    /**
     *  添加部门
     * @param department
     * @return
     */
    RespBean addDept(Department department);

    /**
     *  删除部门
     * @param id
     * @return
     */
    RespBean delDeptById(int id);

    /**
     *  获取所有部门信息
     * @return
     */
    List<Department> getAllDepts();
}
